﻿package 
{
	import com.pool.PoolWorld;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.StageQuality;
	import org.dm.display.DisplayMgr;
	
	/**
	 * ...
	 * @author Scott
	 */
	[SWF(width=800,height=608)]
	public class Main extends Sprite 
	{
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			
			stage.quality = StageQuality.BEST;
			stage.frameRate = 60;
			
			DisplayMgr.add("stage", this);
			var game:PoolWorld = new PoolWorld();
			game.init();
		}
	}
	
}